<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta http-equiv="Cache-Control" content="no-siteapp" />
 <link href="assets/css/bootstrap.min.css" rel="stylesheet" />
        <link rel="stylesheet" href="css/style.css"/>       
        <link href="assets/css/codemirror.css" rel="stylesheet">
        <link rel="stylesheet" href="assets/css/ace.min.css" />
        <link rel="stylesheet" href="font/css/font-awesome.min.css" />
        <!--[if lte IE 8]>
		  <link rel="stylesheet" href="assets/css/ace-ie.min.css" />
		<![endif]-->
		<script src="js/jquery-1.9.1.min.js"></script>
        <script src="assets/js/bootstrap.min.js"></script>
		<script src="assets/js/typeahead-bs2.min.js"></script>           	
		<script src="assets/js/jquery.dataTables.min.js"></script>
		<script src="assets/js/jquery.dataTables.bootstrap.js"></script>
        <script src="assets/layer/layer.js" type="text/javascript" ></script>          
        <script src="assets/laydate/laydate.js" type="text/javascript"></script>
        <script src="js/lrtk.js" type="text/javascript" ></script>
<title>订单处理</title>
</head>

<body>
<div class="clearfix">
 <div class="handling_style" id="order_hand">
      <div id="scrollsidebar" class="left_Treeview">   
 <div class="order_list_style" id="order_list_style" style="margin-left:0">
  <div class="search_style">
     
      <ul class="search_content clearfix">
       <li><label class="l_f">订单编号</label><input name="" type="text"  class="text_add" placeholder="输入订单编号"  style=" width:250px"/></li>
       <li><label class="l_f">交易时间</label><input class="inline laydate-icon" id="start" style=" margin-left:10px;"></li>
       <li style="width:90px;"><button type="button" class="btn_search"><i class="fa fa-search"></i>查询</button></li>
      </ul>
    </div>
    <!--交易订单列表-->
    <div class="Orderform_list">
       <table class="table table-striped table-bordered table-hover" id="sample-table">
		<thead>
		 <tr>
				<th width="25px"><label><input type="checkbox" class="ace"><span class="lbl"></span></label></th>
				<th width="120px">订单编号</th>
				<th width="100px">商品名称</th>
				<th width="200px">商品图片</th>
				<th width="100px">交易积分</th>				
                <th width="130px">交易时间</th>				
				<th width="100px">所属分类</th>
                <th width="80px">数量</th>
				<th width="100px">备注</th> 
				<th width="80px">状态</th>                      
				<th width="120px">操作</th>
			</tr>
		</thead>
	<tbody>
   <tr>
     <td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
     <td>20160705445622</td>
	 <td>稻花香大米</td>
     <td class="order_product_name">
      <a href="#" class="product_Display"><img src="products/p_6.jpg"  title="产品名称"/></a>
     </td>
     <td>-450</td>
     <td>2016-7-5 13:12:12</td>
     <td>食品</td>
     <td>2</td>
	 <td>无备注</td>
     <td>待发货</td>   
     <td>
     <a title="订单详细" href="personal_shopxx.html" class="btn btn-xs btn-info order_detailed" ><i class="fa fa-list bigger-120"></i></a>   
     </td>
     </tr>
     <tr>
     <td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
     <td>20160705445622</td>
	 <td>金龙鱼大米</td>
     <td class="order_product_name">
      <a href="#" class="product_Display">
      <img src="products/p_7.jpg"  title="产品名称"/>
      </a>
     </td>
     <td>-500</td>    
     <td>2016-7-5 14:12:12</td>
     <td>食品</td>
     <td>2</td>
	 <td>无备注</td>
     <td>已发货</td> 
     <td>
     <a title="订单详细" href="personal_shopxx.html" class="btn btn-xs btn-info order_detailed" ><i class="fa fa-list bigger-120"></i></a> 
     </td>
     </tr>
      <tr>
     <td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
     <td>20160705445622</td>
	 <td>鲁花食用油</td>
     <td class="order_product_name">
      <a href="#" class="product_Display"><img src="products/p_9.jpg"  title="产品名称"/>
     </td>
     <td>-600</td>    
     <td>2016-7-5 15:12:12</td>
     <td>食品</td>
     <td>1</td>
	 <td>无备注</td>
     <td>已发货</td> 
     <td>
     <a title="订单详细" href="personal_shopxx.html" class="btn btn-xs btn-info order_detailed" ><i class="fa fa-list bigger-120"></i></a>   
     </td>
     </tr>
	 <tr>
     <td><label><input type="checkbox" class="ace"><span class="lbl"></span></label></td>
     <td>20160705445622</td>
	 <td>金龙鱼食用油</td>
     <td class="order_product_name">
      <a href="#" class="product_Display"><img src="products/p_8.jpg"  title="产品名称"/>
     </td>
     <td>-700</td>    
     <td>2016-7-5 18:12:12</td>
     <td>食品</td>
     <td>1</td>
	 <td>无备注</td>
     <td>交易完成</td> 
     <td>
     <a title="订单详细" href="personal_shopxx.html" class="btn btn-xs btn-info order_detailed" ><i class="fa fa-list bigger-120"></i></a> 
     </td>
     </tr>
    </tbody>
    </table>   
    </div>
 </div>
 </div>
</div>


</body>
</html>
<script>
$(function() { 
	$("#order_hand").fix({
		float : 'left',
		//minStatue : true,
		skin : 'green',	
		durationTime :false,
		spacingw:30,//设置隐藏时的距离
	    spacingh:250,//设置显示时间距
		table_menu:'.order_list_style',
	});
});


//时间
 laydate({
    elem: '#start',
    event: 'focus' 
});
//初始化宽度、高度  
 $(".widget-box").height($(window).height()); 
$(".order_list_style").width($(window).width());
 $(".order_list_style").height($(window).height()-30);
  //当文档窗口发生改变时 触发  
    $(window).resize(function(){
	$(".widget-box").height($(window).height());
	 $(".order_list_style").width($(window).width()-234);
	  $(".order_list_style").height($(window).height()-30);
});
/**发货**/
function Delivery_stop(obj,id){
	layer.open({
        type: 1,
        title: '发货',
		maxmin: true, 
		shadeClose:false,
        area : ['500px' , ''],
        content:$('#Delivery_stop'),
		btn:['确定','取消'],
		yes: function(index, layero){		
		if($('#form-field-1').val()==""){
			layer.alert('快递号不能为空！',{
               title: '提示框',				
			  icon:0,		
			  }) 
			
			}else{			
			 layer.confirm('提交成功！',function(index){
		$(obj).parents("tr").find(".td-manage").prepend('<a style=" display:none" class="btn btn-xs btn-success" onClick="member_stop(this,id)" href="javascript:;" title="已发货"><i class="fa fa-cubes bigger-120"></i></a>');
		$(obj).parents("tr").find(".td-status").html('<span class="label label-success radius">已发货</span>');
		$(obj).remove();
		layer.msg('已发货!',{icon: 6,time:1000});
			});  
			layer.close(index);    		  
		  }
		
		}
	})
};
//订单列表
jQuery(function($) {
		var oTable1 = $('#sample-table').dataTable( {
		"aaSorting": [[ 1, "desc" ]],//默认第几个排序
		"bStateSave": true,//状态保存
		"aoColumnDefs": [
		  //{"bVisible": false, "aTargets": [ 3 ]} //控制列的隐藏显示
		  {"orderable":false,"aTargets":[0,2,3,4,5,6,8,9]}// 制定列不参与排序
		] } );
                 //全选操作
				$('table th input:checkbox').on('click' , function(){
					var that = this;
					$(this).closest('table').find('tr > td:first-child input:checkbox')
					.each(function(){
						this.checked = that.checked;
						$(this).closest('tr').toggleClass('selected');
					});
						
				});
			});
/*订单详细*/
function member_dd(id){
	  layer.open({
        type: 1,
        title: '订单详细',
		maxmin: true, 
		shadeClose:false, //点击遮罩关闭层
        area : ['800px' , ''],
        content:$('#add_menber_style'),
		btn:['确定','取消'],
		yes:function(index,layero){	
		 var num=0;
		 var str="";
     $(".add_menber input[type$='text']").each(function(n){
          if($(this).val()=="")
          {
               
			   layer.alert(str+=""+$(this).attr("name")+"不能为空！\r\n",{
                title: '提示框',				
				icon:0,								
          }); 
		    num++;
            return false;            
          } 
		 });
		  if(num>0){  return false;}	 	
          else{
			
			   layer.close(index);	
		  }		  		     				
		}
    });
}
</script>
